<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
        <!-- <p>{{str}}</p> -->
        <!-- <p v-html="str"></p> -->
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
    //   var vm = new Vue({
    //     el: '#app',
    //     data: {
    //         str:'<span style="color:red;">黑</span>马程序员'
    //     },
    //     methods: {},
    //   })

    //   黑马程序员 --> <span style="color:red;">黑</span>马程序员
    // replace 
    </script>
  </body>
</html>
